home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWWindow / FWWinPro.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.4 KB  |  95 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWWinPro.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFrameW.hpp"
  11.  
  12. #ifndef FWWINPRO_H
  13. #include "FWWinPro.h"
  14. #endif
  15.  
  16. #ifndef SLWINDOW_H
  17. #include "SLWindow.h"
  18. #endif
  19.  
  20. #ifndef FWWINDOW_H
  21. #include "FWWindow.h"
  22. #endif
  23.  
  24. #ifndef FWDEBUG_H
  25. #include "FWDebug.h"
  26. #endif
  27.  
  28. #ifndef FWSOMENV_H
  29. #include "FWSOMEnv.h"
  30. #endif
  31.  
  32. // ----- OpenDoc Utilities -----
  33.  
  34. #ifndef _STDTYPIO_
  35. #include "StdTypIO.h"
  36. #endif
  37.  
  38. #ifndef _STORUTIL_
  39. #include <StorUtil.h>
  40. #endif
  41.  
  42. // ----- OpenDoc Includes -----
  43.  
  44. #ifndef SOM_ODFrame_xh
  45. #include <Frame.xh>
  46. #endif
  47.  
  48. //========================================================================================
  49. //    Runtime Info
  50. //========================================================================================
  51.  
  52. #ifdef FW_BUILD_MAC
  53. #pragma segment fwwindow
  54. #endif
  55.  
  56. FW_DEFINE_AUTO(FW_CWindowProperties)
  57.  
  58. //========================================================================================
  59. //    class FW_CWindowProperties
  60. //========================================================================================
  61.  
  62. //----------------------------------------------------------------------------------------
  63. //    FW_CWindowProperties::FW_CWindowProperties
  64. //----------------------------------------------------------------------------------------
  65.  
  66. FW_CWindowProperties::FW_CWindowProperties()
  67. {
  68.     FW_PrivInitWindowProperties(this);
  69. }
  70.  
  71. //----------------------------------------------------------------------------------------
  72. //    FW_CWindowProperties::~FW_CWindowProperties
  73. //----------------------------------------------------------------------------------------
  74.  
  75. FW_CWindowProperties::~FW_CWindowProperties()
  76. {
  77.     if (fSourceFrame)
  78.     {
  79.         FW_SOMEnvironment ev;
  80.         fSourceFrame->Release(ev);
  81.     }
  82. }
  83.  
  84. //----------------------------------------------------------------------------------------
  85. //    FW_CWindowProperties::ReadWindowProperties
  86. //----------------------------------------------------------------------------------------
  87.  
  88. FW_Boolean FW_CWindowProperties::ReadWindowProperties(Environment* ev, ODFrame* frame)
  89. {
  90.     FW_Boolean result = FW_PrivReadWindowProperties(ev, this, frame);
  91.     FW_FailOnEvError(ev);
  92.     
  93.     return result;
  94. }
  95.